#include "../include/stu.h"
void store_s()
{
	FILE *fp = fopen("./data/stu.txt","w");
	struct student *p = head1;
	while (p != NULL) {
		fprintf(fp, "%s %s %d", p->id, p->name, p->num);
		for(int i=0;i<p->num;i++) {
			fprintf(fp, " %d",p->class[i]);
		}
		fprintf(fp, " %d\n",p->credit);
		p = p->next;
	}
	
	fclose(fp);
}
